import { ProLayoutProps } from '@ant-design/pro-components';
import { STATIC_PATHS } from './paths';

// @ts-ignore
// @ts-ignore
/**
 * @name
 */
const Settings: ProLayoutProps & {
  pwa?: boolean;
  logo?: string;
} = {
  navTheme: 'light',
  colorPrimary: '#F48258',
  // @ts-ignore
  layout: 'side', //sidemenu
  contentWidth: 'Fluid',
  fixedHeader: false,
  fixSiderbar: true,
  colorWeak: false,
  title: '测试管理后台',
  pageTitleRender: false,
  pwa: false,
  // https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg
  logo: STATIC_PATHS.images.logo,
  splitMenus: false,
  iconfontUrl: '',
  token: {
    // 参见ts声明，demo 见文档，通过token 修改样式
    //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F
    sider: {
      colorTextMenuSelected: '#ffffff',
      colorMenuBackground: '#250f04',
      colorTextMenuTitle: '#ffffff',
      colorTextMenu: '#ffffff',
      colorTextMenuItemHover: '#ffffff',
      colorBgMenuItemCollapsedElevated: '#250f04',
      colorTextMenuActive: '#ffffff',
    },
    header: {
      colorBgHeader: '#ffffff',
      colorTextRightActionsItem: '#ffffff',
      colorHeaderTitle: '#ffffff',
      colorTextMenu: '#ffffff',
    },
  },
};

export default Settings;
